package com.wen.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * (Users)实体类
 *
 * @author makejava
 * @since 2021-02-19 14:17:34
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Users implements Serializable {
    private static final long serialVersionUID = -60360297851598986L;
    /**
     * 无意义，主键id
     */

    private Integer id;

    public String getUserName() {
        return userName;
    }

    /**
     * 邮箱
     */

    private String email;

    /**
     * 用户名
     */

    private String userName;

    /**
     * 密码
     */

    private String passWord;

    /**
     * 电话
     */

    private String phoneNum;

    /**
     * 状态0 未开启 1 开启
     */

    private Integer status;
    private String statusStr;
    private List<Role> roles;

    public String getStatusStr() {
        if (status == 0) {
            statusStr = "未开启";
        } else {
            statusStr = "开启";

        }
        return statusStr;
    }


}